﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dataSendModel
{
    public class Device
    {

        public Device() { }

        public Device(string id, string code, int state,int readerId,string gpsId)
        {

            this.Id = id;
            this.Code = code;
            this.State = state;
            this.ReaderId = readerId;
            this.GpsId = GpsId;
        }

        private string id;//设备编号
        private string code;//设备型号
        private int state;//状态
        private string ip;//ip地址
        private int count;//枪的数量
        private int index;//设备序号
        private int readerId; //基站ID
        private string gpsId; //gpsID

        public int ReaderId
        {
            get { return readerId; }
            set { readerId = value; }
        }
        public string GpsId
        {
            get { return gpsId; }
            set { gpsId = value; }
        }
        public int Index
        {
            get { return index; }
            set { index = value; }
        }

        public int Count
        {
            get { return count; }
            set { count = value; }
        }

        public string Ip
        {
            get { return ip; }
            set { ip = value; }
        }

        private List<string> channels = new List<string>();


        public List<string> Channels
        {
            get { return channels; }
        }

        public string Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Code
        {
            get { return code; }
            set { code = value; }
        }

        public int State
        {
            get { return state; }
            set { state = value; }
        }


    }
}
